package com.example.mapper;

import com.example.pojo.*;
import com.example.pojo.mp.ProvinceData;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CityMapper {

    List<CityVo> getCityList();

    China getChinaById(@Param("cityNum") Integer city_number);

    List<CityOption> getCityOption();

    List<CityOption> getProvinceList();
    List<CityOption> getChildrenByParentId(@Param("parentId") Integer parentId);

    int addCityByCityNumber(@Param("cityVo") CityVo cityVo);

    int delCityById(@Param("id") int id);

    List<CityVo> getCityList(ConditionsQuery conditionsQuery);

    List<Region> getRegionList(@Param("cq") ConditionsQuery conditionsQuery);

    int addRegion(@Param("region") Region region);

    Region getRegionById(@Param("id") int id);

    int delRegionById(@Param("id") int id);

    int delRegionBatch(@Param("ids") List<Integer> idList);

    List<China> getProvinceDetails(@Param("id") Integer id);



    CityVo getCityByCityNumber( @Param("id") Integer city_number);
}
